#!/bin/bash

echo "即将清除无效版本。"
docker rmi -f $(docker images | grep "none" | awk '{print $3}')

echo "即将清除旧版本。"
docker rmi -f $(docker images | grep "/rjb/fu-client-portal" | awk '{print $3}')
docker rmi -f $(docker images | grep "fu/fu-client-portal" | awk '{print $3}')

echo "当前版本号 ${v}"

cat ./k8s/ENVS | while read env
do
  ./build.sh $env
done

cd ./k8s

./start.sh
